package com.stu.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student {
    private Integer id;

    private Integer sno;

    private String passWord;

    private String name;

    private String uid;

    private String sex;

    private Integer age;
    // @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime birth;

    private String pnum;

    //  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime stime;

    private String fname;

    private String fpnum;

    private String mname;

    private String mpnum;

    private String address;

    private Integer tno;

    private Integer mno;

    private Integer cno;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    private String createUser;

    @TableField(exist = false)
    private String Cname;

    @TableField(exist = false)
    private String Tname;

    @TableField(exist = false)
    private String Mname1;
}
